<?php
include 'z_header.php';
include_once '../action/bckController.php';
if(!isset($_SESSION['nip'])){
    header('location:login.php');
}
?>
<script>
function konfirmasi(text){
	confirm('Apakah Anda yakin akan melakukan'+text+'?')
}
</script>
<div class="container-fluid">  
    <div class="row-fluid">
<!--AWAL BACKUP-->
<div class="span6 accordion-group" id="backup">
    <div class="span5">
    <form class="form-horizontal" method="post" action="" enctype="multipart/form-data">
        <fieldset>  
            <legend>&nbsp;BACKUP DATABASE</legend> 
            <p align="justify">
		Menu ini digunakan untuk melakukan backup database <br> aplikasi cuti. Pastikan secara rutin administrator <br> melakukan backup database!
                Untuk melakukan backup <br> database aplikasi cuti, tekan tombol <strong><br>Backup Database</strong> dibawah ini.          
            </p>
            <input type="submit" class="btn btn-primary" name="backup"  onClick="return konfirmasi('Backup database')" value="Backup Database" />
        </fieldset>
      </form>
      <?php if(isset($berhasil))echo $berhasil; ?>
        </div>
</div>   
<!-- AKHIR BACKUP-->

<!--AWAL RESTORE-->
<div class="span5 accordion-group" id="restore">
<form class="form-horizontal" method="post" action="" enctype="multipart/form-data">  
        <fieldset>  
            <legend>&nbsp;RESTORE DATABASE</legend>  
            <div class="control-group">  
                <label class="control-label" for="filenya">&nbsp &nbsp;Pilih file</label>  
                    <div class="controls">  
                        <input type="file" class="input-medium" name="filenya" value="Pilih" id="filenya">
                    </div>  
            </div> 
             <div class="form-actions" align="right"> 
                <button type="reset" class="btn">Batal</button>
                <button type="submit" class="btn btn-primary" name="restore" onclick="return konfirmasi('Restore database')">Restore</button>  
             </div>
        </fieldset>
</form>
</div>   
<!-- AKHIR RESTORE-->
<?php include_once 'z_footer.php'; ?>